<?xml version="1.0" encoding="iso-8859-1"?>
<%@ page contentType="text/xml" %>
<%@ page pageEncoding="ISO-8859-1"%>
<%@ page import="familytree.persistencia.pojos.*,familytree.negocio.IEventoProcessor;" %>
<%@ page import="familytree.negocio.bo.EventoBO,java.io.*;" %>
<% Nodo nodo = (Nodo)request.getSession().getAttribute("nodoActual");
    if (nodo != null){
        String idArbol = nodo.getArbol().getIdArbol();
        IEventoProcessor evento = new EventoBO();
        File file = evento.creaXmlCalendario(idArbol);
        FileReader reader = new FileReader(file);
        BufferedReader entrada = new BufferedReader(reader) ;
        String s = "";
        while((s = entrada.readLine()) != null){
            
               s = s.replace("<?xml version=\"1.0\" encoding=\"UTF-8\"?>", "");
            out.println(s);
        }
        
        
    }
%>


